import request from '@/utils/request'

export function fetchUserData() {
    return request.get('https://api.github.com/users/woai3c')
}

export function fetchCustomerInfo() {
    // return request.get('http://localhost:5000/fetchUserInfo').data
    return fetch('http://localhost:5000/fetchUserInfo').then(
        (res) => res.json()
    )
}
